home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16397 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  44 lines

  1. Newsgroups: comp.lang.c++
  2. Path: oce.nl!not-for-mail!news
  3. From: qqehe@oce.nl (Emile Heyns)
  4. Subject: Re: what does this code do?
  5. In-Reply-To: <4kbhu4$83@newsbf02.news.aol.com>
  6. X-Nntp-Posting-Host: tg17-pos
  7. Message-ID: <DpnBBA.B4C@oce.nl>
  8. To: mrdavc@aol.com (Mrdavc)
  9. Sender: news@oce.nl (The Daily News @ nntp01.oce.nl)
  10. Organization: Oce Nederland B.V. - Research & Development
  11. X-Newsreader: knews 0.9.3
  12. References: <3167217D.AC7@lex.infi.net> <4kbhu4$83@newsbf02.news.aol.com>
  13. Date: Wed, 10 Apr 1996 12:13:58 GMT
  14.  
  15. In article <4kbhu4$83@newsbf02.news.aol.com>,
  16.     mrdavc@aol.com (Mrdavc) writes:
  17. >linePtrs[currentLine][lineLen[currentLine]] = (char) key;
  18. >
  19. >so does that mean that the preceeding code is identical to the following:
  20. >
  21. >linePtrs[currentLine] = (char) key;
  22. >lineLen[currentLine] = (char) key;
  23.  
  24. No. It's equivalent to:
  25.  
  26. int x = currentLine;
  27. int y = lineLen[currentLine];
  28. linePtrs[x][y] = (char) key;
  29.  
  30. -- 
  31. Bye,
  32.  
  33. Emile
  34.  
  35. ===========================================================
  36. Emile Heyns email: emile.heyns@hta.nl
  37.  
  38. ===========================================================
  39. Alla sani sa mi e taki na ini disi email na mi denki wawan
  40. -- A no abi fu de dati mi wrokope abi na sem denki.
  41. ===========================================================
  42. Cloning is the sincerest form of flattery.
  43.  
  44.